package com.itheima.chapter06.innerclass.test3;

public class Test {
    public static void main(String[] args) {
        Outer o =new Outer();
        o.method();
    }
}

class Outer {
    private int num =10;
    public void method(){
        int num1=90;
        //局部内部类：方法中
        //          在方法中创建对象并访问
        class Inner{
            public void show(){
                System.out.println("show...");
                System.out.println(num);
                System.out.println(num1);
            }
        }

        Inner i=new Inner();
        i.show();
    }
}
